package com.kmxd.ams.client.use.dto;

import com.kmxd.ams.core.common.enums.UseOrderOperateEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 档案利用管理
 *
 * @author nickbi
 * @since 2022-08-02
 */
@Schema(description = "档案利用管理")
@Data
public class UseOrderManageDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 主键ID */
  @Schema(description = "主键ID")
  @NotNull(message = "主键不能为空")
  private Long id;

  @Schema(description = "管理类型")
  @NotNull(message = "管理类型不能为空")
  private UseOrderOperateEnum type;

  @Schema(description = "档案ids")
  @NotNull(message = "利用档案主键列表不能为空")
  private String useArchIds;

  @Schema(description = "新使用时间")
  private Date useDate;

  @Schema(description = "备注")
  private String remarks;

  @Schema(description = "档案名称")
  private String archContent;

  @Schema(description = "借阅单号")
  private String code;

  @Schema(description = "序号")
  private Integer sequence;

  @Schema(description = "领取/归还人")
  private String userName;

  private String createUserName;

  private Long createBy;

  @Schema(description = "终止利用理由")
  private String reason;
}
